﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace LuShanTea.Front.Web.Models
{
    public class RegisterSendValidCodeModel
    {
        [Required]
        [RegularExpression(@"^[a-z0-9]+([._\\-]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$", ErrorMessage = "邮箱错误")]
        public string Email { get; set; }

        [Required]
        [RegularExpression(@"^[\d]+$",ErrorMessage ="验证码错误")]
        public string Code { get; set; }
    }
}